package com.xuxin.baby.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.xuxin.baby.R;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xu_xin
 * Created on 2020.08.21 0021
 * 0-12个月的目标能力
 */
public class ChildRiskAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public ChildRiskAdapter() {
        super(R.layout.item_child_risk);
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 12; i++) {
            int month = i + 1;
            list.add("宝宝" + month + "个月危险信号");
        }
        setNewInstance(list);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, String item) {
        holder.setText(R.id.item_child_risk_name, item);
    }
}